package com.tanhua.dubbo.api;


import com.tanhua.dubbo.mapper.OptionMapper;
import com.tanhua.model.domian.Option;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@DubboService
public class OptionApiImpl implements OptionApi {

    @Autowired
    private OptionMapper optionMapper;

    @Override
    public List<Option> queryOption() {
        List<Option> options = optionMapper.queryOption();
        return  options;
    }
}
